POV-Ray : Newsgroups : povray.general : CSDL 0.5 (alpha 5) released : Re: CSDL 0.5 (alpha 5) released Server Time
6 Aug 2024 17:00:30 EDT (-0400)
  Re: CSDL 0.5 (alpha 5) released  
From: Warp
Date: 7 Apr 2002 17:09:52
Message: <3cb0b59f@news.povray.org>
Christopher James Huff <chr### [at] maccom> wrote:
> I'm developing it using Apple's modified version of gcc 2.95.2.
> Obviously, vector::at() works here...maybe Apple fixed that part.

  Or maybe they are using another implementation of the STL library than
the one which comes by default with gcc (there are many implementations,
some of them in some ways better than the gcc implementation).

> It seems like such a simple and basic thing that it would be surprising 
> for even the least complete and compliant implementation to lack it.

  That's what surprises me as well.

> In the next version I'll use the [] operator instead...

  After all, if you are completely sure you will never index out of boundaries,
using the at() method is useless overhead.

  Besides, when you use the at() method, you should catch the exception it
might throw. Do you do that? If not, then using at() is pretty useless. :)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.